package cn.wangzg.activitydemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class SecondActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        //showMsg("aaaa");
    }
    public void gotomain(View view){
        Intent intent=new Intent(this,MainActivity.class);
        startActivity(intent);
//        Intent intent = getIntent();
//        int a = intent.getIntExtra("a", 0);
//        int b = intent.getIntExtra("b", 0);
//        intent.putExtra("ret",a+b);
//        setResult(345,intent);
//        finish();
        //overridePendingTransition(R.anim.anim_in,R.anim.anim_out);
        //ActivityCollector.finishAll();
    }
    public void open2(View view) {
        Intent intent = new Intent(this, SecondActivity.class);
        startActivity(intent);
    }
}